import axios from '../../axios'

/* 
 * 货位查询
 */

// 分页查询
export const findPage = (data) => {
    return axios({
        url: '/CoreStock/findPage',
        method: 'post',
        data
    })
}
export const printDetail = (data) => {
    return axios({
        url: '/CoreStock/printDetail',
        method: 'post',
        data
    })
}

export const changeDetailPos = (data) => {
    return axios({
        url: '/CoreStock/changeDetailPos',
        method: 'post',
        data
    })
}
export const findDetailPage = (data) => {
    return axios({
        url: '/CoreStock/findDetailPage',
        method: 'post',
        data
    })
}



// 保存货物
export const SaveStock = (data) => {
    return axios({
        url: '/CoreStock/SaveStock',
        method: 'post',
        data
    })
}



export const getStockDetail = (data) => {
    return axios({
        url: '/CoreStock/getStockDetail',
        method: 'post',
        data
    })
}
export const saveStockDetail = (data) => {
    return axios({
        url: '/CoreStock/saveStockDetail',
        method: 'post',
        data
    })
}

 



export const deleteStock = (data) => {
    return axios({
        url: '/CoreStock/deleteStock',
        method: 'post',
        data
    })
}

export const deleteStockDetail = (data) => {
    return axios({
        url: '/CoreStock/deleteStockDetail',
        method: 'post',
        data
    })
}

 



// 更新状态
export const UpdateStatusById = (data) => {
    return axios({
        url: '/CoreStock/UpdateStatusById',
        method: 'post',
        data
    })
}
// 明细查询
export const GetListByStockId = (data) => {
    return axios({
        url: '/CoreStock/GetListByStockId',
        method: 'post',
        data
    })
}



// 查询主子明细
 

 


export const DirectOutTask = (data) => {
    return axios({
        url: '/CoreStock/DirectOutTask',
        method: 'post',
        data
    })
}

export const detOutEngine = (data) => {
    return axios({
        url: '/CoreStock/detOutEngine',
        method: 'post',
        data
    })
}
export const splitDetEngine = (data) => {
    return axios({
        url: '/CoreStock/splitDetEngine',
        method: 'post',
        data
    })
}


export const pdaHideDet = (data) => {
    return axios({
        url: '/CoreStock/pdaHideDet',
        method: 'post',
        data
    })
}


